package com.mldong.modules.sys.dto;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.*;
import com.mldong.validation.Groups;
/**
 * <p>
 * 文件信息
 * </p>
 *
 * @author mldong
 * @since 2022-10-23
 */
@Getter
@Setter
@TableName("sys_file_info")
@ApiModel(value = "FileInfoParam对象", description = "文件信息")
public class FileInfoParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文件信息ID", required = true)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @NotNull(message = "文件信息ID不能为空", groups = {Groups.Update.class})
    private Long id;

    @ApiModelProperty(value = "文件存储位置<sys_file_location>", required = true)
    @NotNull(message = "文件存储位置<sys_file_location>不能为空")
    private Integer fileLocation;

    @ApiModelProperty(value = "文件仓库", required = true)
    @NotBlank(message = "文件仓库不能为空")
    private String fileBucket;

    @ApiModelProperty(value = "文件名称", required = true)
    @NotBlank(message = "文件名称不能为空")
    private String fileOriginName;

    @ApiModelProperty(value = "文件后辍", required = true)
    @NotBlank(message = "文件后辍不能为空")
    private String fileSuffix;

    @ApiModelProperty(value = "文件大小KB", required = true)
    @NotNull(message = "文件大小KB不能为空")
    private Long fileSizeKb;

    @ApiModelProperty(value = "文件大小信息，计算得出", required = true)
    @NotBlank(message = "文件大小信息，计算得出不能为空")
    private String fileSizeInfo;

    @ApiModelProperty(value = "文件唯一标识id", required = true)
    @NotBlank(message = "文件唯一标识id不能为空")
    private String fileObjectName;

    @ApiModelProperty(value = "文件存储路径", required = true)
    @NotBlank(message = "文件存储路径不能为空")
    private String filePath;


}
